[SUBROUTINE]
version = 1.14
icon = probe-hole.png
name = _("Probe Hole")
type = probe_hole
help = _("<b>Probe a hole with options for touch-off center at 0.0&#10;START WITH PROBE IN CENTER OF HOLE AND DEPTH TO PROBE</b>")
order = act hp dia dbl h2 touch

[PARAM_ACT]
name = _("Active")
icon = enable.png
type = bool
icon = enable.png
value = 1

[PARAM_HP]
name = _("Params")
type = sub-header

[PARAM_DIA]
name = _("Diameter")
type = float
value = 1.0
metric_value = 25.0
header = hp
icon = diameter.png

[PARAM_DBL]
name = _("Double check")
type = bool
icon = dbl-check.png
value = 0
tool_tip = _("Measure twice")
header = hp

[PARAM_H2]
name = _("Touch off")
type = sub-header

[PARAM_TOUCH]
name = _("Set origin")
type = bool
icon = touch-off.png
tool_tip = _("Set center to X0 and Y0")
value = 1
header = h2

[CALL]
content =
	(begin #sub_name)
	(probe material author : Fernand Veilleux)
	
	o<#self_id_ena> if [#param_act]
		o<probe_stock> CALL [0] [0] [0] [0] [0] [0] [#param_dbl] [#param_dbl] [1] [1] [#param_touch] [0] [#param_dia] [0] [#param_dia]
		
	o<#self_id_ena> endif
	(end #sub_name)
